home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!marnold
- From: marnold@netcom.com (Matt Arnold)
- Subject: Re: BC++5.0 Program doesn't compile (see text)
- Message-ID: <marnoldDpHBG2.7vJ@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <31643314.794BDF32@nac.telco.com> <craigaDpEqDq.1DI@netcom.com> <marnoldDpFnn3.9FE@netcom.com> <31673A9B.AA@tdl.com>
- Date: Sun, 7 Apr 1996 06:31:14 GMT
- Sender: marnold@netcom19.netcom.com
-
- Martin Moore <moore@tdl.com> writes:
-
- >Matt Arnold wrote:
- >>
- >> craiga@netcom.com (Craig Arnush) writes:
- >>
- >> >Martin Moore <moore@nac.telco.com> writes:
- >> >>
- >> >>I cannot get the following program to compile...can anyone else?
- >> >>
- >> >>#include "vector.h"
- >> >>using namespace std;
- >> >>vector<long> test;
- [snip]
- >The error message from Borland C++ 5.0 (with patch BC50P1 installed) is
- >"Access Violation: Address 0x blah blah blah" (my "blah"'s since the
- >address is irrelevant). This is a compile time error, not a run time
- >error, that is, it appears where warnings and true compile errors
- >appear.
- >This is really not a question addressing whether the program is
- >syntactically correct. It is a question to anyone who has the same
- >compiler and patch applied. Sorry for not making that clear.
-
- >If you have that compiler (and possibly the patch), does it compile that
- >snippet? Mine doesn't...and I wonder why, though I suspect the compiler
- >is broken in this instance.
-
- Hmm, don't have 5.0 yet. But, for reference, Borland C++ 4.52 has no
- trouble with the following...
-
- #define __MINMAX_DEFINED
- #include "vector.h"
- vector<long> test;
-
- ...using the HP version of STL (obivously, the namespace stuff was
- removed cause 4.52 doesn't support it).
-
- If the access violations you're getting are not due to a corrupted .IDE
- file or something like that, you should report this problem to Borland.
-
- Regards,
- -------------------------------------------------------------------------
- Matt Arnold | | ||| | |||| | | | || ||
- marnold@netcom.com | | ||| | |||| | | | || ||
- Boston, MA | 0 | ||| | |||| | | | || ||
- 617.389.7384 (h) 617.576.2760 (w) | | ||| | |||| | | | || ||
- C++, MIDI, Win32/95 developer | | ||| 4 3 1 0 8 3 || ||
- -------------------------------------------------------------------------
-